package com.zzyl.common;

import com.baidubce.qianfan.Qianfan;
import com.baidubce.qianfan.model.chat.ChatResponse;
import com.zzyl.common.utils.PDFUtil;

import java.io.FileInputStream;
import java.io.FileNotFoundException;

/**
 * @Description TODO
 * @Author bo.li
 * @Date 2025/5/22 10:06
 * @Version 1.0
 */
public class AiModelTest {


    public static void main(String[] args) throws FileNotFoundException {
        String s = PDFUtil.pdfToString(new FileInputStream("D:\\zzyl\\体检报告-刘爱国-男-69岁.pdf"));
        System.out.println(s);
    }

//    public static void main(String[] args) {
//        Qianfan qianfan = new Qianfan("ALTAKiQMEpVgnYrLN2CVK7gBEB", "95a886e325b5471eb85302eb7cfb0b87");
//
//        ChatResponse response = qianfan.chatCompletion().addMessage("user", "给我讲讲Redis是干啥的").execute();
//
//        System.out.println(response.getResult());
//    }
}